﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using InformationSystem.Framework.Dao;
using System.Data;
using Spring.Data.Common;

namespace InformationSystem.BLL.Core.Dao.Impl
{
    public class SpringTestDaoImpl : InfoSysAdoDaoSupport, ISpringTestDao
    {
        public string GetHelloInformation()
        {
            //string deleteSql = "delete from Group_Menu where groupID=@groupID";

            //IDbParametersBuilder builder = CreateDbParametersBuilder();
            ////builder.Create().Name("groupID").Type(DbType.Int32).Value(groupID);

            //AdoTemplate.ExecuteNonQuery(CommandType.Text, deleteSql, builder.GetParameters());

            //deleteSql = "delete from User_Group where groupID=@groupID";
            //AdoTemplate.ExecuteNonQuery(CommandType.Text, deleteSql, builder.GetParameters());

            //deleteSql = "delete from Groups where groupID=@groupID";
            //AdoTemplate.ExecuteNonQuery(CommandType.Text, deleteSql, builder.GetParameters());
            //return true;
            return "OK";
        }
    }
}
